@import (reference) "@{cosyless}";

.departmentSearch{
    padding: 15px;
}
.mod-department{
    .departmentList{
        .height(~"100% - 60px");
        overflow: hidden;
        overflow-y: auto;
    }
}
.departmentList{
    .dp-box{
        font-size: 14px;
        .dpb-hd{
            a{
                height:24px;
                line-height:24px;
                padding:13px 10px 13px 30px;
                display: block;
                position: relative;
                color: #666;
                z-index: 0;
                &:before{
                    content: '';
                    position: absolute;
                    left:15px;
                    border-style: solid;
                    border-width: 6px;
                    border-color:transparent transparent transparent #cacaca;
                    top:19px;
                    transform-origin: 25% 50%;
                    transition: all .3s;
                }
                &:hover{
                    &:after{
                        content: '';
                        position: absolute;
                        right:0;
                        width:316px;
                        border-left:4px solid #2e8ded;
                        height:100%;
                        top:0;
                        background-color: #eaf0fb;
                        z-index: -1;
                    }
                }
            }
        }
        .dpb-bd{
            padding-left: 25px;
            display: none;
        }
        .dpb-item{
            padding: 13px 10px 13px 15px;
            height:24px;
            line-height:24px;
            color: #666;
            display: block;
            position: relative;
            z-index: 0;
            &:hover{
                &:after{
                    content: '';
                    position: absolute;
                    right:0;
                    width:316px;
                    border-left:4px solid #2e8ded;
                    height:100%;
                    top:0;
                    background: #eaf0fb;
                    z-index: -1;
                }
            }
        }
        &.dp-checked{
            &>.dpb-hd{
                a{
                    &:before{
                        transform:rotate(90deg)
                    }
                }
            }
            &>.dpb-bd{
                display: block;
            }
        }
    }
    &.departmentChoose{
        .dp-box{
            .dpb-hd{
                a{
                    &:hover{
                        &:after{
                            display: none;
                        }
                    }
                }
            }
            .dpb-item{
                padding-left: 45px;
                background: url(../images/icon-check.png) no-repeat 17px center;
                &:hover{
                    &:after{
                        display: none;
                    }
                }
                &.checked{
                    background: url(../images/icon-checked.png) no-repeat 17px center;
                }
            }
        }
    }
}







